import request from '@/utils/request'

// 查询商城分类列表
export function listShopCategory(query) {
  return request({
    url: '/system/shopCategory/list',
    method: 'get',
    params: query
  })
}

// 查询商城分类详细
export function getShopCategory(id) {
  return request({
    url: '/system/shopCategory/' + id,
    method: 'get'
  })
}

// 新增商城分类
export function addShopCategory(data) {
  return request({
    url: '/system/shopCategory',
    method: 'post',
    data: data
  })
}

// 修改商城分类
export function updateShopCategory(data) {
  return request({
    url: '/system/shopCategory',
    method: 'put',
    data: data
  })
}

// 删除商城分类
export function delShopCategory(id) {
  return request({
    url: '/system/shopCategory/' + id,
    method: 'delete'
  })
}
